package com.atldy.commerce.feign.hystrix;

import com.atldy.commerce.account.AddressInfo;
import com.atldy.commerce.account.AddressItemVo;
import com.atldy.commerce.commence.Id;
import com.atldy.commerce.commence.TableId;
import com.atldy.commerce.feign.SecureAddressClient;
import com.atldy.commerce.vo.CommonResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * <h2> TODO </h2>
 *
 * @Author: li-dong-yang
 * @CreateTime: 2021-11-04 23:09
 */
@Slf4j
@Component
public class SecureAddressHystrix implements SecureAddressClient {

    @Override
    public CommonResponse<AddressInfo> getAddressInfoByIds(TableId tableId) {
        log.error("get response getAddressInfoByIds fail ");
        return new CommonResponse<AddressInfo>(-1, "get response getAddressInfoByIds fail");
    }

    @Override
    public CommonResponse<AddressInfo> getCurrentUserAddressInfo() {
        log.error("get response getCurrentUserAddressInfo fail ");
        return new CommonResponse<AddressInfo>(-1, "get response getCurrentUserAddressInfo fail");
    }

    @Override
    public CommonResponse<AddressItemVo> getAddressInfoById(Id id) {
        log.error("get response getAddressInfoById fail ");
        return new CommonResponse<AddressItemVo>(-1, "get response getAddressInfoById fail");
    }
}